class Solution {
public:
    char findTheDifference(string s, string t)
    {
        int i, r = 0;
        for(i = 0; i < s.size(); ++i) {
            r ^= s[i];
            r ^= t[i];
        }
        r ^= t[i];
        return (char) r;
    }
};